<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        /**
         * 函数定义
         * function 函数名称(参数1,参数2,参数3,.....,参数n){
         *      php代码块
         * {
         */
        // 定义消息及跳转函数
        function go_forward($msg,$url){
            echo "<script>alert('$msg');location.href='$url'</script>";
        }
        //函数测试
//        go_forward("去百度", "http://www.baidu.com");
        ?>
    </body>
</html>
